package cn.henvc.shenhaibing;
import java.sql.Date;

public class User {
	String userName;
	String password;
	Date birthday;
	String telNumber;
	String email;
	public User(String userName, String password, Date date, String telNumber, String email) {
		super();
		this.userName = userName;
		this.password = password;
		this.birthday = birthday;
		this.telNumber = telNumber;
		this.email = email;
	}
	public int hashCode(){
		return userName.hashCode();
	}
	public boolean equals(Object object){
		if (this==object) {
			return true;
		}
		if (object ==null) {
			return false;
		}
		if (getClass() != object.getClass()) {
			return false;
		}
		User other =(User)object;
		if (userName == null) {
			if (other.userName != null) {
				return false;
			}
			}else if(userName.equals(other.userName)){
				return false;
			}
		return false;
		
	}
}